﻿using System;
using System.Collections.Generic;
using System.Text;

namespace C4F.DevKit.Telephony
{

    /// <summary>
    /// This class is a custom exception class derived from Exception class. This will deal with exceptions thrown by TapiManager class.
    /// </summary>
    [global::System.Serializable]
    public class TapiManagerException : Exception
    {
        /// <summary>
        /// Initializes a new object of TapiManagerException class.
        /// </summary>
        public TapiManagerException() { }

        /// <summary>
        /// Initializes a new object of TapiManagerException class.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        public TapiManagerException(string message) : base(message) { }

        /// <summary>
        /// Initializes a new object of TapiManagerException class.
        /// </summary>
        /// <param name="message">The message that describes the error.</param>
        /// <param name="inner">The exception that is the cause of the current exception.</param>
        public TapiManagerException(string message, Exception inner) : base(message, inner) { }

        /// <summary>
        /// Initializes a new object of TapiManagerException class.
        /// </summary>
        /// <param name="info">The System.Runtime.Serialization.SerializationInfo that holds the serialized
        /// object data about the exception being thrown.</param>
        /// <param name="context">The System.Runtime.Serialization.StreamingContext that contains contextual
        /// information about the source or destination.</param>
        protected TapiManagerException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }

    }

}
